package io;

import java.io.*;

public class OISDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis=new FileInputStream("text1.txt");
        ObjectInputStream ois=new ObjectInputStream(fis);

        Object str=ois.readObject();
       // ois.readObject(student);
        Student jk=(Student) str;

        System.out.println(jk);
        ois.close();
        System.out.println("输出完毕");

    }
}



















